<!--
    Desenvolvido pela Fábrica de Software do CESUPA.
    Todos os direitos reservados.

    @author Breno Leite
-->

<ui:component xmlns="http://www.w3.org/1999/xhtml"
              xmlns:ui="http://java.sun.com/jsf/facelets"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:a4j="http://richfaces.org/a4j"
              xmlns:rich="http://richfaces.org/rich"
              xmlns:c="http://java.sun.com/jstl/core">

    <h:graphicImage url="/images/icons/arrow-up.gif"/>
    <c:if test="#{target == null}">
        <a title="#{tooltipmessages.GoToTop}" href="#content">
            #{messages.GoToTop}
        </a>
    </c:if>

    <c:if test="${target != null}">
        <a title="#{tooltipmessages.GoToTop}" href="#${target}">
            #{messages.GoToTop}
        </a>
    </c:if>
</ui:component>